#include <stdio.h>

int main(void){
  int num1=10;
  double num2=10.5;
  void *viPtr1=&num1;
  void *vdPtr2=&num2;
  // 将void指针转回普通指针
  int *ptr3=(int *)viPtr1;
  double *ptr4=(double *)vdPtr2;
  printf("*ptr3:%d\n",*ptr3);
  printf("*ptr4:%lf\n",*ptr4);
  // 解引用void指针
  //printf("*viPtr1:%d\n",*viPtr1);
  return 0;
}